package es.ats.codington.festival.interfaces.daos;

import java.util.List;

import es.ats.codington.festival.domain.Place;
import es.ats.codington.festival.exceptions.DAOException;

public interface IPlaceDAO {

	/**
	 * DAO interface for showAllPlaces method.
	 * @return places
	 * @throws DAOException
	 */
	public List<Place> showAllPlaces() throws DAOException;

	/**
	 * DAO interface for insertPlace method.
	 * @param place
	 * @param typePlace
	 * @return insertPlace
	 * @throws DAOException
	 */
	public boolean insertPlace(Place place, String typePlace) throws DAOException;

	/**
	 * DAO interface for updatePlace method.
	 * @param place
	 * @return affectedRows
	 * @throws DAOException
	 */
	public int updatePlace(Place place) throws DAOException;

}

